package com.qf.fronted.service.impl;

import com.qf.admin.domain.User;
import com.qf.fronted.mapper.UserMapper;
import com.qf.fronted.service.IUserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    private UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    /* @Override
        public Integer register(String phone, String username, String password, String email, String sex) {
            return registerDao.register(phone, username, password, email, sex);
        }

        @Override
        public boolean checkPhoneOrUsername(String phoneOrUsername) {
            return registerDao.checkPhoneOrUsername(phoneOrUsername);
        }
    */
    @Override
    public User checkUsernameAndPassword(String username, String password) {
        return userMapper.checkUsernameAndPassword(username, password);
    }
}
